<%--
  Created by IntelliJ IDEA.
  User: Infor
  Date: 2017/07/02
  Time: 14:08
  To change this template use File | Settings | File Templates.
--%>

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>edit student</title>
</head>
<body>
<c:url value="/student/edit" var="editurl"/>
<form:form method="post" action="${editurl}" modelAttribute="viewModel">
    <form:hidden path="id"/>
    <form:input path="name" placeholder="姓名"/> <form:errors path="name"/><br/>
    <form:input path="phone" placeholder="电话"/> <form:errors path="phone"/><br/>
    <form:input path="email" placeholder="email"/> <form:errors path="email"/><br/>
    <form:input path="age" placeholder="年龄"/> <form:errors path="age"/><br/>
    <input type="submit" value="提交"/>
</form:form>
</body>
</html>
